date | cowsay -e \$\#  | lolcat

alias update="sudo pacman -Syu"

alias free="free -h"
alias new-tern="gnome-terminal"
alias rm="rm -vi"
alias seu_wlan="~/bin/SeuConnect.py"
alias you-get="you-get -o ~/Downloads/YouGet"

alias sdcv="sdcv -c"

alias conky_start="sh ~/.conky/conky-startup.sh"
alias aria2_start="aria2c --conf-path=/home/corvo/.aria2/aria2c.conf"


#  https://stackoverflow.com/questions/30703860/how-do-i-unset-a-variable-in-the-fish-shell/30703861
# No Proxy
function noproxy
    #/usr/local/sbin/noproxy  #turn off proxy server
    set -g -e http_proxy
 	set -g -e https_proxy
	set -g -e HTTP_PROXY
	set -g -e HTTPS_PROXY
end

# Proxy
function setproxy
	# export http_proxy=http://*.*.*.*:8080
	# export https_proxy=http://*.*.*.*:8080
    # sh /usr/local/sbin/proxyon  #turn on proxy server 
    set -g -x http_proxy http://127.0.0.1:18118
    set -g -x HTTP_PROXY $http_proxy
    set -g -x https_proxy $http_proxy
    set -g -x HTTPS_PROXY $https_proxy
    # export http_proxy https_proxy  HTTP_PROXY HTTPS_PROXY
end

set normal (set_color normal)
set magenta (set_color magenta)
set yellow (set_color yellow)
set green (set_color green)
set red (set_color red)
set gray (set_color -o black)

# Fish git prompt
set __fish_git_prompt_showdirtystate 'yes'
set __fish_git_prompt_showstashstate 'yes'
set __fish_git_prompt_showuntrackedfiles 'yes'
set __fish_git_prompt_showupstream 'yes'
set __fish_git_prompt_color_branch yellow
set __fish_git_prompt_color_upstream_ahead green
set __fish_git_prompt_color_upstream_behind red

# Status Chars
set __fish_git_prompt_char_dirtystate '⚡'
set __fish_git_prompt_char_stagedstate '→'
set __fish_git_prompt_char_untrackedfiles '☡'
set __fish_git_prompt_char_stashstate '↩'
set __fish_git_prompt_char_upstream_ahead '+'
set __fish_git_prompt_char_upstream_behind '-'


function fish_prompt
  set last_status $status

  set_color $fish_color_cwd
  printf '%s' (prompt_pwd)
  set_color normal

  printf '%s ' (__fish_git_prompt)

  set_color normal
end

